@use '@angular/material' as mat;

@mixin user-color($theme) {
  $config: mat.m2-get-color-config($theme);
  $foreground: map-get($config, foreground);
  $background: map-get($config, background);
  $primary: map-get($config, primary);
  $accent: map-get($config, accent);
  $warn: map-get($config, warn);

  $text-base: mat.m2-get-color-from-palette($foreground, text, 0.75);
  .user {
    .user-menu {
      .item {
        a {
          border: 1px solid mat.m2-get-color-from-palette($foreground, divider);
          color: mat.m2-get-color-from-palette($foreground, text);
          transition: all 0.5s ease;
          &.active,
          &:hover {
            background-color: mat.m2-get-color-from-palette($primary);
            color: mat.m2-get-color-from-palette($primary, default-contrast);
          }
        }
      }
    }
  }

  .user-center {
    .profile {
      background-color: mat.m2-get-color-from-palette($background, card);
      @include mat.elevation(
        4,
        mat.m2-get-color-from-palette($foreground, text),
        0.3
      );
    }
    .main {
      .box {
        background-color: mat.m2-get-color-from-palette($background, card);
        @include mat.elevation(
          4,
          mat.m2-get-color-from-palette($foreground, text),
          0.3
        );
      }
    }
  }
}
